Skip to content

Conversation

@iobuhov
Copy link
Collaborator

@iobuhov iobuhov commented Dec 2, 2025

Pull request type

Refactoring (e.g. file rename, variable rename, etc.)

New feature (non-breaking change which adds functionality)


Description

Add dynamic pagination to datagrid.

@iobuhov iobuhov requested a review from a team as a code owner December 2, 2025 12:43
@iobuhov iobuhov force-pushed the WC-3113/dynamic-pagination branch from c56dde1 to 14f1f59 Compare December 3, 2025 13:34
@iobuhov iobuhov force-pushed the WC-3113/dynamic-pagination branch from 14f1f59 to 114f9fc Compare December 9, 2025 10:37
if (values.useCustomPagination === false) {
hidePropertyIn(defaultProperties, values, "customPagination");
} else {
hidePropertiesIn(defaultProperties, values, ["pagingPosition", "showPagingButtons"]);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we want to provide the way to set custom pagination position to top/bottom of the grid?

settingsStorageEnabled: isSettingsStorageEnabled(props),
enableSelectAll: props.enableSelectAll,
keepSelection: props.keepSelection,
pagingPosition: props.pagingPosition,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks like a candidate to go to the pagination config, so we have single responsibility. As well as newly added requestTotalCount and constPageSize, it feels like they can be a responsibility of the pagination config.
What do you think?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants